cmake_minimum_required (VERSION 3.1)
project (demo)

ADD_SUBDIRECTORY(log)
ADD_SUBDIRECTORY(ringbuff)
ADD_SUBDIRECTORY(fliter)

aux_source_directory(. demo_src)
add_executable(demo ${demo_src})

include_directories(./log)
include_directories(./ringbuff)
include_directories(./fliter)

TARGET_LINK_LIBRARIES(demo log)
TARGET_LINK_LIBRARIES(demo fliter)
TARGET_LINK_LIBRARIES(demo ringbuff)